package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution66 {
    public int[] plusOne(int[] digits) {
        return ArrayUtils.plusOne(digits);
    }
}

public class leetcode66 {
    public static void main(String[] args) {
        Solution66 solution66 = new Solution66();
        int[] nums = {1, 2, 3};
        int[] nums1 = {9, 9, 9};
        int[] nums2 = {1, 9, 9};
        int[] nums3 = {0};
        int[] nums4 = {1, 9, 0};
        System.out.println(Arrays.toString(solution66.plusOne(nums)));
        System.out.println(Arrays.toString(solution66.plusOne(nums1)));
        System.out.println(Arrays.toString(solution66.plusOne(nums2)));
        System.out.println(Arrays.toString(solution66.plusOne(nums3)));
        System.out.println(Arrays.toString(solution66.plusOne(nums4)));
    }
}
